-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nullable annotation for System.Windows.Extensions #57896
Nullable annotation for System.Windows.Extensions #57896
Conversation
Note regarding the This serves as a reminder for when your PR is modifying a ref *.cs file and adding/modifying public APIs, to please make sure the API implementation in the src *.cs file is documented with triple slash comments, so the PR reviewers can sign off that change. |
I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label. |
How to verify the ref source? I tried |
src/libraries/System.Windows.Extensions/ref/System.Windows.Extensions.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Windows.Extensions/ref/System.Windows.Extensions.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Windows.Extensions/src/System/Media/SoundPlayer.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Windows.Extensions/ref/System.Windows.Extensions.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Windows.Extensions/src/System/Media/SoundPlayer.cs
Outdated
Show resolved
Hide resolved
@@ -271,7 +274,9 @@ private void LoadSync() | |||
_stream = webResponse.GetResponseStream(); | |||
} | |||
|
|||
if (_stream.CanSeek) | |||
// DO NOT assert - NRE is expected for null stream | |||
// See SoundPlayerTests.Load_NullStream_ThrowsNullReferenceException |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It'd be worth opening an issue for this to decide separately whether we should throw a better exception in that case.
src/libraries/System.Windows.Extensions/ref/System.Windows.Extensions.cs
Show resolved
Hide resolved
@stephentoub Is this now ready? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks!
/azp run runtime |
Azure Pipelines successfully started running 1 pipeline(s). |
@stephentoub ping on this |
Part of #41720